home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / scnsrv.zip / SCANSERV.TXT < prev    next >
Text File  |  1992-10-23  |  3KB  |  102 lines

  1.  
  2.             Oct 20, 1992
  3.  
  4. SCANSERV.EXE for Novell NetWare
  5. ===============================
  6.  
  7. In the course of doing some research for a school paper (about
  8. operating systems and disk file activity), I had cause to write
  9. this small program which generates a very special kind of file
  10. system directory.
  11.  
  12. SCANSERV produces a complete directory of all volumes on all 
  13. attached servers, but is only interested in five pieces of in-
  14. formation:
  15.  
  16.     file size
  17.     update date
  18.     archive date
  19.     creation date
  20.     access date
  21.  
  22.  
  23. SCANSERV doesn't record any other information, and its output is
  24. in a form suitable for reading into a spreadsheet or database system
  25. for statistical analysis. SCANSERV outputs five decimal numbers for
  26. each file it finds; the information for each file comprises one line.
  27. (The information is listed in the order shown above; file size is first,
  28. update date is second, etc).
  29.  
  30. The file date information is actually processed as a file "age" (i.e.,
  31. how many days ago was that date?). For example, a file whose access date
  32. is "today" will have an "age" value of zero; a file last accessed yesterday
  33. will have an age of "1", etc.
  34.  
  35. SCANSERV outputs its information on the standard output (which can
  36. redirected to a file.).
  37.  
  38. **** Useful Feature: Invalid Date detection! ****
  39. ==================================================
  40.  
  41. During the course of developing this program for my own data collection
  42. purposes, I discovered that some of the "age" numbers I was getting were
  43. negative! I explored further, and discovered that some files on my net-
  44. work had dates like 0-13-2029, and so forth!
  45.  
  46. So, I added a feature to SCANSERV which will print out the file names
  47. and weird date information as it is running its scan. If you want to use
  48. SCANSERV solely for this purpose, just type:
  49.  
  50.     SCANSERV >nul
  51.  
  52. If any weird dates are found, they will appear on the screen!
  53.  
  54.  
  55. **** Ulterior Motive: Your Help Would Be appreciated! ****
  56. ==========================================================
  57.  
  58. I have an ulterior motive in handing out this code. I would greatly appre-
  59. ciate receiving scan results from your server to help me in building a
  60. richer, more diverse model of how real-world people actually use their
  61. Novell networks to store data. Up here in the ivory towers of academia, 
  62. we like to get a cold, refreshing splash of REAL data :-) to keep us
  63. thinking straight.
  64.  
  65. To collect this data, just type
  66.  
  67.     SCANSERV >outputfilename
  68.  
  69. Example:
  70.  
  71.     SCANSERV >C:\TEMP\SCAN.OUT
  72.  
  73. Since SCANSERV doesn't record file, directory, volume, or server names,
  74. you won't have to worry about revealing anything confidential. I would
  75. greatly appreciate receiving these data files via CompuServe E-Mail to
  76. myself:
  77.  
  78.     Jorge Gustavson 72360,1665
  79.  
  80. If you could, please PKZIP the file before sending. It'll save us both
  81. by a factor of about 4 in upload/download time.
  82.  
  83.  
  84. ***** Sample Output and Source Code INCLUDED *****
  85. ===================================================
  86.  
  87. A very simplified example output file EXAMPLE.OUT has been provided
  88. for your perusal. I have also included the source code for the program,
  89. comprised of:
  90.  
  91.     SCANSERV.C    NEWNOV.C  NEWNOV.H  VERSION.H
  92.  
  93. A Borland C++ V3.1 project file (SCANSERV.PRJ) is also included for 
  94. quick and easy rebuilding using Borland C V3.1.
  95.  
  96.  
  97. **** End of SCANSERV.TXT **** 
  98.  
  99.  
  100.  
  101.  
  102.